﻿namespace TowerCraneMonitorClient.NetClient.EventFault
{
    /// <summary>
    /// 故障事件信息
    /// </summary>
    [System.Flags]
    public enum EventMessage
    {
        /// <summary>
        /// 0:正常
        /// </summary>
        Normal,

        /******************* 其他为故障 *******************/

        /// <summary>
        /// Bit[0]:变幅传感器故障
        /// </summary>
        ExtentSensor = 1,

        /// <summary>
        /// Bit[1]:高度传感器故障
        /// </summary>
        HeightSensor = 2,

        /// <summary>
        /// Bit[2]:转角传感器故障
        /// </summary>
        RotationAngleSensor = 4,

        /// <summary>
        /// Bit[3]:吊重传感器故障
        /// </summary>
        WeightSensor = 8,

        /// <summary>
        /// Bit[4]:风速传感器故障
        /// </summary>
        WindSpeedSensor = 16,

        /// <summary>
        /// Bit[5]:海拔传感器故障（暂不用）
        /// </summary>
        AltitudeSensor = 32,

        /// <summary>
        /// Bit[6]:倾角传感器故障（暂不用）
        /// </summary>
        ObliqueAngleSensor = 64,

        /// <summary>
        /// Bit[7]:语音电路故障
        /// </summary>
        VoiceCircuit = 128,

        /// <summary>
        /// Bit[8]:无线模块故障
        /// </summary>
        WirelessModule = 256,

        /// <summary>
        /// Bit[9]:存储系统故障
        /// </summary>
        StorageSystem = 512,

        /// <summary>
        /// Bit[10]:主供电掉电
        /// </summary>
        MainPower = 1024,

        /// <summary>
        /// Bit[11]: 参数设置故障
        /// </summary>
        ParameterSetting = 2048,

        /// <summary>
        /// Bit[12]: 时钟故障
        /// </summary>
        Clock = 4096,

        /// <summary>
        /// Bit[13]: 3G模块故障
        /// </summary>
        MobileModule = 8192,

        /// <summary>
        /// Bit[14]: 显示屏通讯故障
        /// </summary>
        DisplayScreen = 16384,

        // Bit[15]：保留
    }
}
